package cc.admin.modules.wea.entity;

import java.io.Serializable;
import java.util.Date;

import cn.hutool.core.util.IdUtil;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import cc.admin.poi.excel.annotation.Excel;
import cc.admin.common.aspect.annotation.Dict;

/**
 * @Description: 风暴预警表
 * @Author: cc-admin
 * @Date:   2024-08-27
 * @Version: V1.0.0
 */
@Data
@TableName("wea_storm_warning")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="wea_storm_warning对象", description="风暴预警表")
public class WeaStormWarning {

	/**编号*/
	@Excel(name = "编号", width = 15)
    @ApiModelProperty(value = "编号")
	private String id;
	/**平台id*/
	@Excel(name = "平台id", width = 15)
    @ApiModelProperty(value = "平台id")
	private String platformId;
	/**标题*/
	@Excel(name = "标题", width = 15)
    @ApiModelProperty(value = "标题")
	private String title;
	/**预警级别*/
	@Excel(name = "预警级别", width = 15)
    @ApiModelProperty(value = "预警级别")
	private String warningLevel;
	/**发布时间*/
	@Excel(name = "发布时间", width = 15)
    @ApiModelProperty(value = "发布时间")
	private Date releaseDate;
	/**更新时间*/
	@Excel(name = "更新时间", width = 15)
    @ApiModelProperty(value = "更新时间")
	private Date updateDate;
	/**预报时效*/
	@Excel(name = "预报时效", width = 15)
    @ApiModelProperty(value = "预报时效")
	private String validity;
	/**警报内容*/
	@Excel(name = "警报内容", width = 15)
    @ApiModelProperty(value = "警报内容")
	private String content;
	/**警报落区*/
	@Excel(name = "警报落区", width = 15)
    @ApiModelProperty(value = "警报落区")
	private String coastalRegions;
	/**企业id*/
	@Excel(name = "企业id", width = 15)
	@ApiModelProperty(value = "企业id")
	private String tenantId;

	public WeaStormWarning(){}

	public WeaStormWarning(JSONObject jsonData) {

		this.id = jsonData.getString("id");
		this.platformId = jsonData.getString("platformId");
		this.title = jsonData.getString("title");
		this.warningLevel = jsonData.getString("warningLevel");
		this.releaseDate = jsonData.getDate("releaseDate");
		this.updateDate = jsonData.getDate("updateDate");
		this.validity = jsonData.getString("validity");
		this.content = jsonData.getString("content");
		this.coastalRegions = jsonData.getString("coastalRegions");
	}


}
